package com.ktjy.mapper;

import com.ktjy.pojo.SysRole;
import com.ktjy.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysRoleMapper {
    public int addRole(SysRole role);

    public int updateRole(SysRole role);

    /**
     * 联合查询删除
     * @param id
     * @return
     */
    public List<SysUser> getUser(Integer id);

    public int deleteUser(Integer id);

    public int deleteRole(Integer id);

    public List<SysRole> getAllRole(@Param ("roleName") String roleName);
}
